package com.cy.ppj.web.admin.wj;

import com.cy.ppj.model.PageBean;
import com.cy.ppj.model.query.wj.WsOrderAdminListQuery;
import com.cy.ppj.model.vo.wj.WsOrderAdminListVO;
import com.cy.ppj.service.wj.WsOrderService;
import com.cy.ppj.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 后台-万税贷询单
 * @Author tanyilin
 * @Date 2019/6/6 15:15
 */
@RestController
@RequestMapping("/admin/ws/order")
@Api(tags = "后台-万税贷询单")
public class AdminWsOrderController extends BaseController {

    @Autowired
    private WsOrderService wsOrderService;

    @ApiOperation("询单列表")
    @GetMapping("/list")
    public PageBean<WsOrderAdminListVO> getWsOrderAdminList(WsOrderAdminListQuery query) {

        PageBean<WsOrderAdminListVO> pageBean = wsOrderService.selectWsOrderAdminList(query);
        return pageBean;
    }

}
